jshn: add error handling and fix memory leak in jshn_format().
authorYousong Zhou <[email protected]>
Wed, 12 Nov 2014 13:59:20 +0000 (21:59 +0800)
committerFelix Fietkau <[email protected]>
Thu, 11 Dec 2014 16:58:42 +0000 (17:58 +0100)
commit8c6dadbe038509f8428966c03bcf6be83d832904
tree14f2be344bd1aff2a207c02b4de6a384736a8b1d
parent7f1ce63a84a4c0c3cd1c44ec49a758190e5e1e79
jshn: add error handling and fix memory leak in jshn_format().

Though currently jshn is more a one-shot data transformation tool and
won't leak much memory in its lifetime, people may use it as example
code, so do it right.

Signed-off-by: Yousong Zhou <[email protected]>
jshn.c